const btnControl = {
  state: {
    btnArray: [],
    roleName: ""
  },

  mutations: {
    btnArray: (state, data) => {
      console.log("存值", data);
      state.btnArray = data;
    },
    roleName: (state, data) => {
      console.log(data);
      state.roleName = data;
    }
  },
  actions: {
    btnArray(context, data) {
      context.commit("btnArray", data);
    }
  }
};
export default btnControl;
